package com.starry.module.system.core.redis;

/**
 * System Redis Key 枚举类
 *
 * @author xiaoke
 */
public interface RedisKeyConstants {

    /**
     * 字典详情
     */
    String SYS_DICTIONARY_DETAILS = "starry:system:sys_dictionary_details:";
    /**
     * 机构树
     */
    String SYS_DEPT_TREE = "starry:system:sys_dept_tree";
    /**
     * OAuth2 客户端详情
     */
    String SYS_OAUTH2_CLIENT_DETAILS = "starry:system:sys_oauth2_client_details:";

    /**
     * 认证-验证码key
     */
    String AUTH_CHECK_CODE = "starry:security:check:code:";
    /**
     * 认证-错误次数key
     */
    String AUTH_ERROR_COUNT = "starry:security:error:count:";
    /**
     * 认证-错误次数key过期时间(分)
     */
    Long AUTH_ERROR_COUNT_TIME = 60L;
    /**
     * 认证-错误次数最大值
     */
    Long AUTH_ERROR_COUNT_MAX = 3L;
}
